<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人门户</title>
    <link rel="stylesheet" type="text/css" href="../../easyui/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../../easyui/themes/icon.css" />
    
    <script type="text/javascript" src="../../js/jquery-latest.min.js"></script>
    <script type="text/javascript" src="../../easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="../../easyui/plugins/jquery.portal.js"></script>
    <link rel="stylesheet" type="text/css" href="../../easyui/themes/portal.css" />
    
    <style type="text/css">
		.title{
			font-size:16px;
			font-weight:bold;
			padding:20px 10px;
			background:#eee;
			overflow:hidden;
			border-bottom:1px solid #ccc;
		}
		.t-list{
			padding:5px;
		}
	</style>
	<script>
		$(function(){
			$('#pp').portal({
				border:false,
				fit:true
			});

			$('#mainMap').panel();
			//add();
		});
		function add(){
			for(var i=0; i<2; i++){
				var p = $('<div/>').appendTo('body');
				p.panel({
					title:'Title'+i,
					content:'<div style="padding:5px;">Content'+(i+1)+'</div>',
					height:100,
					closable:true,
					collapsible:true
				});
				$('#pp').portal('add', {
					panel:p,
					columnIndex:i
				});
			}
			$('#pp').portal('resize');
		}
		
		function remove(){
			$('#pp').portal('remove',$('#pgrid'));
			$('#pp').portal('resize');
		}
	</script>
</head>
<body class="easyui-layout">
	<div region="north" class="title" border="false" style="height:50px;">
		自定义门户
	</div>
	<div region="center" border="false">
		<div id="pp" style="position:relative">
			<div style="width:20%;">
				<div title="搜索" iconCls="icon-search" closable="true" style="height:60px;padding:5px;">
					<input class="easyui-searchbox">
				</div>
				<div title="待办" style="text-align:center;height:220px;padding:5px;">
					<div id="cc" class="easyui-calendar" style="width:180px;height:180px;"></div>
			    </div>
			    <div title="常用菜单" collapsible="true" closable="true" style="height:100px;padding:5px;">
			    	<div class="t-list"><a href="http://www.zi-han.net/case/easyui/base.html">EasyUI中文文档</a></div>
			    	<div class="t-list"><a href="http://www.jeasyui.com/index.php">EasyUI官网</a></div>
			    </div>
			</div>
			<div style="width:40%;">
				<div id="pgrid" title="正在作业井" closable="true" style="height:350px;">
					<table class="easyui-datagrid" style="width:650px;height:auto;"
							fit="true" border="false"
							singleSelect="true"
							idField="itemid" url="../../data/dr/datagrid_data1.json">
						<thead>
							<tr>
								<th field="jsontext1" width="60">井名</th>
								<th field="jsontext2" width="90">井别</th>
								<th field="jsontext3" width="80">井型</th>
								<th field="jsontext4" width="80">坐标X</th>
								<th field="jsontext5" width="80">坐标Y</th>
								<th field="status" width="40">状态</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
			<div style="width:40%;height: 440px;">
				<div id="mainMap" collapsible="true" fit="true" title="正在施工油区分布" closable="true" style="text-align: left;overflow:hidden;height: 350px;">
					
				</div>
			</div>
		</div>
	</div>
	<script src="http://echarts.baidu.com/build/echarts-plain-map.js"></script>
	<script type="text/javascript">
    // --- 地图 ---
    var myChart2 = echarts.init(document.getElementById('mainMap'));
    myChart2.setOption({
        tooltip : {
            trigger: 'item',
            formatter: '{b}'
        },
        series : [
            {
                name: '河北油区分布',
                type: 'map',
                mapType: '河北',
                roam: true,
                selectedMode : 'multiple',
                itemStyle:{
                    normal:{label:{show:true}},
                    emphasis:{label:{show:true}}
                },
                data:[
                    {name:'沧州市',selected:true},
                    {name:'邯郸市',selected:true},
                    {name:'石家庄市',selected:true}
                ]
            }
        ]
    });
    </script>
</body>
</html>